

export default {
	data() {
		return {
			initial: {
				geturl: "",
				params: {
					page: 1,
					limit: 10,
				}
			}

		}
	},
	methods: {
		getData() {
			return new Promise((resolve, reject) => {
				this.axios.post(this.initial.geturl, this.initial.params).then(res => {
					resolve(res)
				}).catch(err => {

				})
			})
		},
		SizeChange(e) {
			this.initial.params.limit = e.size;
			this.initial.params.page = e.page;
			this.getData()
		},
		CurrentChange(e) {
			this.initial.params.limit = e.size;
			this.initial.params.page = e.page;
			this.getData()
		},
	}


}
